package com.ybwh.springboot2.exmple.service.impl;

import com.ybwh.springboot2.exmple.entity.SysAccountRole;
import com.ybwh.springboot2.exmple.mapper.SysAccountRoleMapper;
import com.ybwh.springboot2.exmple.service.SysAccountRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 账号角色关联表 服务实现类
 * </p>
 *
 * @author fanbeibei
 * @since 2023-07-12
 */
@Service
public class SysAccountRoleServiceImpl  implements SysAccountRoleService {
    @Resource
    private SysAccountRoleMapper  sysAccountRoleMapper;

    /**
     * 之所以要生成以下方法而不直接用mybatis-plus的原始方法，是为了方便追溯某个mapper调用代码,
     * 避免find use后找出一批无关的代码
     */

    @Override
    public int insert(SysAccountRole entity) {
        return sysAccountRoleMapper.insert(entity);
    }

    @Override
    public int deleteById(Serializable id) {
        return sysAccountRoleMapper.deleteById(id);
    }

    @Override
    public int deleteBatchIds(Collection<? extends Serializable> idList) {
        return sysAccountRoleMapper.deleteBatchIds(idList);
    }

    @Override
    public int updateById(SysAccountRole entity) {
        return sysAccountRoleMapper.updateById(entity);
    }

    @Override
    public SysAccountRole selectById(Serializable id) {
        return sysAccountRoleMapper.selectById(id);
    }

    @Override
    public List<SysAccountRole> selectBatchIds(Collection<? extends Serializable> idList) {
        return sysAccountRoleMapper.selectBatchIds(idList);
    }

/**------------以上是生成代码-----------------------------------------------------------------------------------------------------------------*/




}
